package com.ruoqing.user.service.api;

import com.ruoqing.core.dto.BaseResponse;
import com.ruoqing.core.dto.auth.LoginUserDto;
import com.ruoqing.core.dto.user.UserRegisterDto;
import com.ruoqing.core.vo.auth.AuthResponseVo;
import com.ruoqing.core.vo.inform.SmsResponseVo;

/**
	* @author YaoXian
	* @title: UserRegisterService
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 用户服务 - 用户注册接口
	* @date 2020-11-06 22:07
	*/
public interface UserRegisterService {
		/**
			*  用户手机验证码注册获取手机验证码
			* @param phoneNumber
			* @return SmsResponseVo
			* @throws Exception
			*/
		SmsResponseVo registerGetPhoneCode(String phoneNumber) throws Exception;
		
		/**
			*  校验用户注册时的验证码
			* @param code
			* @param phoneNumber
			* @return BaseResponse
			*/
		BaseResponse checkRegisterCode(String code,String phoneNumber);
		
		/**
			*  用户注册
			* @param userRegisterDto
			* @return BaseResponse
			*/
		BaseResponse userRegister(UserRegisterDto userRegisterDto);
		
		/**
			* 用户登录
			* @param loginUserDto
			* @return AuthResponseVo
			*/
		AuthResponseVo userLogin(LoginUserDto loginUserDto);
		
	}
